package com.tangyuan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.model.MovieCoordination;
import com.tangyuan.model.UserAction;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 小梁
 * @since 2020-12-03
 */
public interface MovieCoordinationService extends IService<MovieCoordination> {

    /**
     * 根据算法结果的entity对象插入电影之间的相似度
     */
    void saveMovieCoordination(List<UserAction> userActions);

    List<MovieCoordination> getCoordinationByMovieId(List<Long> movieIds);

    List<Long> getMaxDistance(Long userId);
}
